<admintpl file="header" />
<style>
a{cursor: pointer;}
.fl{float:left;}
.c-pages{padding:20px 0; text-align: center;}
.c-pages.tl{text-align: left;}
.c-pages span{display: inline-block; margin-right: 5px; font-size:12px; height:28px; line-height: 28px;}
.c-pages span.col{color: #fe344e; font-weight: 600;}
.c-pages span a{display: inline-block; margin:0 3px; height:28px; line-height: 28px; text-align: center; padding:0 12px; border:1px solid #ccc; text-decoration: none; border-radius: 2px;}
.c-pages span a:link,.c-pages span a:active,.c-pages span a:visited{color: #333;}
.c-pages span a:hover{ color: #ff8540; }
.c-pages span a.active{color: #fff; background: #ff8540;}
.c-pages  .current{ color: #fff; background: #ff8540; display: inline-block; margin: 0 3px; height: 28px;
	line-height: 28px;
	text-align: center;
	padding: 0 12px;
	text-decoration: none;
	border-radius: 2px;
}
.addWei{background: none; border:1px solid #ff8540; color: #ff8540; padding:4px 6px; font-size: 14px;float:left;margin-left:80px;margin-top:4px;}
.btns{background: none; border:1px solid #ff8540; color: #ff8540; padding:4px 6px; font-size: 14px;margin-top:5px;margin-left: 33px;}
.btnfx{cursor: pointer; width:60px; height:28px;line-height:28px; border:1px solid #07a9ff; color: #07a9ff; border-radius: 4px; background: none; margin-left:4px;}
.table td,.table th{text-align:center;}
.fx_table2 tr{white-space:nowrap;  overflow: hidden;}
</style>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
	<form class="well form-search" method="post" action="{:U('Shimingrenzheng/shiming_lst')}">
		会员昵称：<input type="text" style="width:120px;height: 15px;margin-right: 20px" value="{$nickname}" name="nickname" id="nickname" placeholder="请输入昵称">
		身份证号： <input type="text" style="width:170px;height: 15px;margin-right: 20px" value="{$shenfenzheng_num}" name="shenfenzheng_num" id="shenfenzheng_num" placeholder="请输入身份证号">
		认证时间从<input type="text" name="time1" id="test1" class="laydate-icon" style="width: 150px;height: 15px" value="{$time1}">
		到  <input type="text" name="time2" id="test2" class="laydate-icon" style="width: 150px;height: 15px" value="{$time2}">

		<input type="submit" style="margin-top:5px; padding:4px 12px;" class="btn btn-danger btnc1" value="搜索"/>
		<a class="btn btn-primary btnc2" style="padding:4px 12px; margin-top:5px; " href="{:U('Shimingrenzheng/shiming_lst')}">清空</a>
	</form>

    <div id="mydiv">
        <table class="fx_table2 table table-hover table-bordered">
            <thead>
            <tr>
				<th>序号</th>
				<th>姓名</th>
				<th>昵称</th>
                <th>性别</th>
                <th>身份证号</th>
				<th>手持身份证照片/名片</th>
				<th>认证时间</th>
                <th width="80">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v" key='k'>
                <tr>
					<td>{$k+1+$sd}</td>
                    <td>{$v.name}</td>
					<td>{$v.nickname}</td>
					<td><?php if($v['sex']=='0'){echo "男";}elseif($v['sex']=='1'){echo "女";} ?></td>
					<td><?php if($v['shenfenzheng']==0){echo "—";}else{echo $v['shenfenzheng'];} ?></td>
                    <td><img src="{$v.shenfenzheng_photo}" width="50" height="50"></td>
					<td><?php echo date("Y-m-d",$v["renzheng_times"]);?>
					</td>
                    <td>
						<a onclick="det({$v.id})">验证认证信息</a>
					</td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </div>
   <div class="c-pages tc">
		<span>{$page} 第{$p}页/共{$totalpage}页</span>
	</div>
</div>
</body>
</html>
<script src="public/js/laydate/laydate.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script >

   function det(id){
       window.location.href='index.php?g=Admin&m=Shimingrenzheng&a=shiming_xiangxi&id='+id;
   }


var ti = "<?php echo $time1;?>";
var ti2 = "<?php echo $time2;?>";
$("#test1").val(ti);
$("#test2").val(ti2);


laydate({
    elem: '#test1',
    format: 'YYYY-MM-DD', // 分隔符可以任意定义，该例子表示只显示年月
    start: laydate.now(0, 'YYYY-MM-DD'),
    festival: true, //显示节日
    choose: function(datas){ //选择日期完毕的回调
        $("#test1").html(datas);
        //	window.location.href='index.php?g=Admin&m=Count&a=caigou&time='+datas+'&shop='+sid+'&time_type='+1;
    }
});

laydate({
    elem: '#test2',
    format: 'YYYY-MM-DD', // 分隔符可以任意定义，该例子表示只显示年月
    start: laydate.now(0, 'YYYY-MM-DD'),
    festival: true, //显示节日
    choose: function(datas){ //选择日期完毕的回调
        $("#test2").html(datas);
        //	window.location.href='index.php?g=Admin&m=Count&a=caigou&time='+datas+'&shop='+sid+'&time_type='+1;
    }
});
$(function(){
	$(".well").width($(".fx_table2").width()-38);
})



</script>
